package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学习笔记回复表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LearnDiaryReply extends Model<LearnDiaryReply> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 父id
     */
    private String parentId;

    /**
     * 日记id
     */
    private String learnDiaryId;

    /**
     * 回复评论人的id
     */
    private String replierId;

    /**
     * 回复评论人的内容
     */
    private String replierContent;

    /**
     * 回复评论人的头像
     */
    private String replierIcon;

    /**
     * 回复评论人的姓名
     */
    private String replierName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 被回复者
     */
    private String byReply;

    private String byReplyId;

    /**
     * 0-禁用 1-启用
     */
    private Integer status;


    public static final String ID = "id";

    public static final String PARENT_ID = "parent_id";

    public static final String LEARN_DIARY_ID = "learn_diary_id";

    public static final String REPLIER_ID = "replier_id";

    public static final String REPLIER_CONTENT = "replier_content";

    public static final String REPLIER_ICON = "replier_icon";

    public static final String REPLIER_NAME = "replier_name";

    public static final String CREATE_TIME = "create_time";

    public static final String BY_REPLY = "by_reply";

    public static final String BY_REPLY_ID = "by_reply_id";

    public static final String STATUS = "status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
